package com.king.modules.system.service;

import com.king.framework.base.service.YyBaseService;
import com.king.modules.system.domain.SysUserRoleEntity;

public interface SysUserRoleService  extends YyBaseService<SysUserRoleEntity,Long>{

	int countUserRoleByRoleId(Long roleId);

	void deleteUserRoleByUserId(Long userId);
	
	void deleteUserRoleByUserIds(Long[] userIds);

	int deleteAuthUsers(Long roleId, Long[] userIds);
	
	int insertAuthUsers(Long roleId, Long[] userIds);

	int deleteAuthRoles(Long userId, Long[] roleIds);

	int insertAuthRoles(Long userId, Long[] roleIds);

	int deleteByRoleId(Long roleId);

}
